Skip to content

&ai Add partner record handling - #97

Open
danamansana wants to merge 1 commit into
mainfrom
scc-5447
Open

&ai Add partner record handling#97
danamansana wants to merge 1 commit into
mainfrom
scc-5447

Conversation

@danamansana

Copy link
Copy Markdown
Contributor
  • Adds support for partner records in the /record= path
  • Pulls in NyplSource mapper
  • Adds relevant tests
  • Not related: update package.json to fix some critical warnings

const { NyplSourceMapper, config } = require('@nypl/node-utils')

let nyplSourceMapperInstance = null
const getNyplSourceMapper = async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is totally fine, but the idea of the NyplSourceMapper is to load the instance in some initializer method at a high level in the app. Then the NyplSourceMapper.instance() is available as a synchronous method without having to deal with building your own singleton method. The module itself is already handling that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants